package com.rs.service.rs;

import java.util.List;
import java.util.Map;

import com.rs.model.CommonResult;
import com.rs.model.rs.User;

public interface UserService {

	/***App***/
	CommonResult<String> userRegisterApp(User user);//注册用户

	CommonResult<User> userLookInfoApp(Integer u_id);//查看个人详情

	CommonResult<String> userChangePassApp(User user);//修改密码

	CommonResult<String> userChangeInfoApp(User user);//修改个人信息

	CommonResult<String> userHeadPortraitsApp(User user);//修改头像

	CommonResult<String> userGetHeadPathApp(User user);//得到头像的地址

	//得到用户的职位权限
	CommonResult<Integer> userGetRankApp(User user);

	CommonResult<String> userAuditUserApp(User user);//审批注册用户

	CommonResult<List<User>> userWaitingAuditUserApp();//等待审核的用户列表

	/**********pc***********/
	CommonResult<String> userAddEmpPc(User user);//pc新增用户

	CommonResult<Map<String, Object>> userQueryAllEmpPc(User user);//pc 查询所有的员工

	CommonResult<User> userQueryOneEmpPc(Integer u_id);//查询员工的个人信息

	CommonResult<String> userUpdateUserInfoPc(User user);//修改员工信息

	CommonResult<Map<String, Object>> userConditionQueryPc(User user);//条件查询

	//入职时间进行条件查询
	CommonResult<Map<String, Object>> userEntryTimeQueryPc(Map<String, String> map);

	//离职时间进行条件查询
	CommonResult<Map<String, Object>> userQuitTimeQueryPc(Map<String, String> map);

	User Login(User user);

}
